import axios from '../axios/index'

type From = {
   username: string
   password: string
}
export const login = (data: From) => axios.request<{ token: string }>({ method: 'post', url: 'admin/login', data })
